<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<%@ include file="/WEB-INF/include/common/common-header.jspf"%>
		<title>${siteName} - 修改密码</title>
		<%@ include file="/WEB-INF/include/admin/common-admin-header.jspf"%>
	</head>
	<body class="layui-layout-body">
		<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-header">修改密码</div>
						<div class="layui-card-body" pad15="">
							<form class="layui-form" method="post" action="${ctx}/admin/sys/user/modifyPassword.html">
								<input type="hidden" name="id" value="${user.id}">
								<div class="layui-form-item">
									<label class="layui-form-label">当前密码</label>
									<div class="layui-input-inline">
										<input type="text" name="password" lay-verify="required" autocomplete="off" placeholder="请输入当前密码" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">新密码</label>
									<div class="layui-input-inline">
										<input type="text" id="newPassword" name="newPassword" lay-verify="required|password" autocomplete="off" placeholder="请输入新密码" class="layui-input">
									</div>
									<div class="layui-form-mid layui-word-aux">密码不能包括空格，长度为8-16个字符且必须包含字母、数字、符号中至少2种</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">确认新密码</label>
									<div class="layui-input-inline">
										<input type="text" id="confirmPassword" lay-verify="required|comparePassword" autocomplete="off" placeholder="请再次输入新密码" class="layui-input">
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-input-block">
										<button class="layui-btn" lay-submit="" lay-filter="modifyPassword">确认修改</button>
									</div>
								</div>
							</form>
	
						</div>
					</div>
				</div>
			</div>
		</div>
		<%@ include file="/WEB-INF/include/common/common-footer.jspf" %>
		<script>
			var exception = '${exception}';
			var success = '${success}';
		</script>
		<script src="${ctx}/js/admin/sys/user/password.js?r=<%=Math.random()%>"></script>
	</body>
</html>